<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/device',
    'namespace' => 'Frieza\\Modules\\Device\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {

    $router->get('/index', 'DeviceBlackController@index');//设备黑/白名单列表
    $router->delete('/index/{id}', 'DeviceBlackController@del');//删除
    $router->get('/index/create', 'DeviceBlackController@add');//添加页面
    $router->get('/index/{id}/edit', 'DeviceBlackController@edit');//修改页面
    $router->post('/index/save', 'DeviceBlackController@editSubmit');//添加、修改提交
});